package com.systemdevelopment.mainproject.View.demo;

import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXDrawer;
import com.jfoenix.controls.JFXDrawersStack;
import com.systemdevelopment.mainproject.View.PaneFactory;
import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.Pane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

import java.io.IOException;

public class drawerDemo extends Application {

    public static void main(String[] args) {
        launch(args);
    }

        @Override
        public void start(Stage stage) throws IOException {
            FXMLLoader fxmlLoader = new FXMLLoader(drawerDemo.class.getResource("drawerDemo.fxml"));

            Pane p=  fxmlLoader.load();
            final Scene scene = new Scene(p);
            ((JFXDrawer)p.lookup("#drawer")).setSidePane(PaneFactory.getPane("./demo/sidePane.fxml"));
            stage.setTitle("JFX Drawer Demo");
            stage.setScene(scene);
            stage.setResizable(true);
            stage.show();
        }
}
